package cn.itlaobing.spring.dao;

import java.util.List;

import cn.itlaobing.spring.entity.Student;

public interface StudentDao {
	/**
	 * 新增
	 * @param student
	 */
	public void addStudent(Student student);
	/**
	 * 删除
	 * @param id
	 * @return
	 */
	public int deleteID(Long id);
	/**
	 * 修改
	 * @param student
	 * @return
	 */
	public int update(Student student);
	/**
	 * 全查询
	 * @return
	 */
	public List<Student> findAll();
	/**
	 * 单查询
	 * @param id
	 * @return
	 */
	public Student findById(Long id);
	
}
